import request from "@/utils/request";

// 查询广告管理列表
export function listAdvertising(query) {
  return request({
    url: "/library/mbAdvertising/list",
    method: "get",
    params: query,
  });
}

// 查询广告管理详细
export function getAdvertising(id) {
  return request({
    url: "/library/mbAdvertising/" + id,
    method: "get",
  });
}

// 新增广告管理
export function addAdvertising(data) {
  return request({
    url: "/library/mbAdvertising",
    method: "post",
    data: data,
  });
}

// 修改广告管理
export function updateAdvertising(data) {
  return request({
    url: "/library/mbAdvertising",
    method: "put",
    data: data,
  });
}

// 删除广告管理
export function delAdvertising(id) {
  return request({
    url: "/library/mbAdvertising/" + id,
    method: "delete",
  });
}
